import memberApi from "@/api/declaration/mall/memberApi"
import httpRequest from "@/config/axios/httpRequest"
import { MemberConfigModel } from "@/models/mall/ConfigModel"


// 查询积分设置详情
export const getConfig = async () => {
  return await httpRequest.get(memberApi.GetConfig)
}

// 新增修改积分设置
export const saveConfig = async (data: MemberConfigModel) => {
  return await httpRequest.post(memberApi.SaveConfig, data)
}
